package com.atguigu.srb.core.mapper;

import com.atguigu.srb.core.pojo.entity.BorrowInfo;
import com.atguigu.srb.core.pojo.vo.BorrowerInfoVo;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 借款信息表 Mapper 接口
 * </p>
 *
 * @author Atguigu
 * @since 2022-10-24
 */
public interface BorrowInfoMapper extends BaseMapper<BorrowInfo> {
//    必须给queryWrapper 设置命名参数，名称为ew
    List<BorrowerInfoVo> selectBorrowerInfoVoPage(Page<BorrowerInfoVo> page,
                                                  @Param("ew") QueryWrapper<BorrowerInfoVo> queryWrapper);
}
